<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>门岗管理-访客登记</title>
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/headersearch.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/editStyle.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="css/customerservicelist.css" />
    <link rel="stylesheet" type="text/css" href="css/releaserecord_frm.css" />
    <style>
        
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <!-- 出门登记-项目名称 -->
        <div class="mask_bg" v-on:click="doCloseProject()" v-if="IsProjectOpen"></div>
        <div class="choose_box" v-if="IsProjectOpen">
            <div class="choose_room_title">
                <div class="choose_room_title">请选择项目名称</div>
            </div>
            <div class="choose_room_content">
                <div v-on:click="doSelectProject(item)" class="choose_room_item" v-for="item in ProjectList"
                    v-bind:class="{'selected':formtwo.ProjectID==item.ID}">
                    <label>{{item.Name}}</label><i v-bind:class="{'selected':formtwo.ProjectID==item.ID}"
                        class="icon iconfont icon-xuanze"></i>
                </div>
            </div>
        </div>
        <!-- 出门登记-通行事由 -->
        <div class="mask_bg" v-on:click="doCloseVisitType()" v-if="IsVisitTypeOpen"></div>
        <div class="choose_box" v-if="IsVisitTypeOpen">
            <div class="choose_room_title">
                <div class="choose_room_title">请选择通行事由</div>
            </div>
            <div class="choose_room_content">
                <div v-on:click="doSelectVisitType(item)" class="choose_room_item" v-for="item in typelist2"
                    v-bind:class="{'selected':formtwo.VisitTypeID==item.ID}">
                    <label>{{item.Name}}</label><i v-bind:class="{'selected':formtwo.VisitTypeID==item.ID}"
                        class="icon iconfont icon-xuanze"></i>
                </div>
            </div>
        </div>
        <!-- 出门记录-筛选 -->
        <div class="maskbg" v-on:click="doCloseSearchThird()" v-if="IsShowSearchThird"></div>
        <div v-if="showsearchparam" class="searchparam" style="top: 100px;">
            <div class="searchcontent" style="height: 100%;">
                <div class="searchparamtitle">
                    所属项目
                </div>
                <div class="searchparamitem">
                    <label v-on:click="doSearchProject(0,'全部')"
                        v-bind:class="{'active':formthird.ProjectIDs.indexOf(0)>-1}">全部</label>
                    <label v-on:click="doSearchProject(item.ID,item.Name)"
                        v-bind:class="{'active':formthird.ProjectIDs.indexOf(item.ID)>-1}"
                        v-for="item in searchProjectList">{{item.Name}}</label>
                </div>
                <div class="searchparamtitle">
                    通行事由
                </div>
                <div class="searchparamitem">
                    <label v-on:click="doSearchVisitType(0,'全部')"
                        v-bind:class="{'active':formthird.VisitTypeIDs.indexOf(0)>-1}">全部</label>
                    <label v-on:click="doSearchVisitType(item.ID,item.Name)"
                        v-bind:class="{'active':formthird.VisitTypeIDs.indexOf(item.ID)>-1}"
                        v-for="item in typelist2">{{item.Name}}</label>
                </div>
                <div class="searchparamtitle">
                    放行时间
                </div>
                <div class="searchparamitem">
                    <label v-bind:class="{'active':formthird.activeDate==1}" v-on:click="doClickDay(1)">近三天</label>
                    <label v-bind:class="{'active':formthird.activeDate==2}" v-on:click="doClickDay(2)">近七天</label>
                    <label v-bind:class="{'active':formthird.activeDate==3}" v-on:click="doClickDay(3)">近三十天</label>
                </div>
                <div class="searchparamtitle">
                    自定义查询日期
                </div>

                <div class="searchparamitem searchparamitem_input">
                    <i class="icon iconfont icon-rili"></i>
                    <span class="choose new-span-date" id="startdate" data-options='{"type":"date"}'
                        v-bind:class="{'textColorPlaceholder':formthird.startTime==''}">{{formthird.startTime==''?'开始日期':formthird.startTime}}</span>
                    <span style="padding: 0 10px;">
                        至
                    </span>
                    <span class="choose new-span-date" id="enddate" data-options='{"type":"date"}'
                        v-bind:class="{'textColorPlaceholder':formthird.endTime==''}">{{formthird.endTime==''?'结束日期':formthird.endTime}}</span>
                </div>
                <div class="aui_bottom searchbottom">
                    <div v-on:click="doReset()" class="aui_bottombtn left">重置</div>
                    <div v-on:click="doSearch()" class="aui_bottombtn right">确认</div>
                </div>
            </div>
        </div>
        <!-- 顶部tab -->
        <div class="new-van-tabs bgshadow">
            <van-tabs v-model="activeTab" @click="onClickTab" color="#289FFF" title-active-color="#000">
                <van-tab :title="item.Name" v-for="(item,index) in tabList" :key="index" />
            </van-tabs>
        </div>
        <!-- 扫码放行 -->
        <div v-if="activeTab==0">
            <div class="div-header bgshadow" style="position: unset;padding-bottom: 20px;">
                <div style="text-align: center;padding: 20px 0;">
                    <div>
                        <i v-on:click="do_open_scan_login()" class="icon iconfont icon-saoma1 text-grey"
                            style="font-size: 3rem;"></i>
                    </div>
                    <div>
                        <label v-on:click="do_open_scan_login()" class="customer_beginbtn"
                            style="width: 110px;border-radius: 4px;">点击进行扫码</label>
                    </div>
                </div>
                <div class="text-grey">
                    <div class="aui-font-size-12">说明信息：</div>
                    <div class="aui-font-size-12">1、您可以通过扫码功能扫码访客通行二维码确认放行。</div>
                    <div class="aui-font-size-12">2、扫码功能只能扫码由本系统生成的访客二维码。</div>
                </div>
            </div>
        </div>
        <!-- 访客登记 -->
        <div v-if="activeTab==1" class="mt50 pb4">
            <div class="boxarea edit mt27">
                <div class="work_title work_title_fk">
                    受访信息
                </div>
                <div class="">
                    <div class="aui_formitem border-bottom0">
                        <div class="aui_formtitle">通行事由<img class="col-star" src="../image/redstar.png"></div>
                        <div class="aui_formcontent">
                            <input class="choose" readonly="readonly" placeholder="请选择" v-model="formtwo.VisitTypeName"
                                v-on:click="do_chooseVisitType()" type="text">
                            <i class="icon iconfont icon-xiangyoujiantou"></i>
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">所属项目<img class="col-star" src="../image/redstar.png"></div>
                        <div class="aui_formcontent">
                            <input class="choose" readonly="readonly" placeholder="请选择" v-model="formtwo.ProjectName"
                                v-on:click="do_chooseProject()" type="text">
                            <i class="icon iconfont icon-xiangyoujiantou"></i>
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">受访单位<img class="col-star" src="../image/redstar.png"></div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.ApplyCompany" placeholder="请填写" type="text">
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">受访人<img class="col-star" src="../image/redstar.png"></div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.VisitedName" placeholder="请填写" type="text">
                        </div>
                    </div>
                    <div class="aui_formitem border-bottom0">
                        <div class="aui_formtitle">手机号码</div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.VisitedPhone" placeholder="请填写" type="text">
                        </div>
                    </div>

                </div>
            </div>
            <div class="boxarea edit">
                <div class="work_title work_title_fk">
                    访客信息
                </div>
                <div class="">
                    <div class="aui_formitem">
                        <div class="aui_formtitle">来访人<img class="col-star" src="../image/redstar.png"></div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.VisitorName" placeholder="请填写" type="text">
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">手机号码<img class="col-star" src="../image/redstar.png"></div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.PhoneNumber" placeholder="请填写手机号码" type="text">
                        </div>
                    </div>

                    <div class="aui_formitem">
                        <div class="aui_formtitle">身份证号</div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.IDCardNumber" placeholder="请填写身份证号码" type="text">
                        </div>
                    </div>

                    <div class="aui_formitem">
                        <div class="aui_formtitle">来访人数</div>
                        <div class="aui_formcontent">
                            <van-stepper v-model="formtwo.VisitCount" class="new-from-input" integer />
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">物品信息</div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.ItemName" placeholder="请填写" type="text">
                        </div>
                    </div>
                    <div class="aui_formitem border-bottom0">
                        <div class="aui_formtitle">车辆信息</div>
                        <div class="aui_formcontent">
                            <input v-model="formtwo.CarNumber" placeholder="请填写" type="text">
                        </div>
                    </div>
                </div>

            </div>

            <div style="width: 92%;margin: 0 auto;padding: 10px 0;">
                <div class="text-grey aui-font-size-12" style="margin-bottom: 3px;">注意事项:</div>
                <div class="text-grey aui-font-size-12">此功能为手动登记访客进门记录，不会生成访客二维码。</div>
            </div>
        </div>
        <!-- 访客记录 -->
        <div v-if="activeTab==2">
            <div class="div-header bgshadow">
                <div class="aui-searchbar">
                    <div class="aui-searchbar-input aui-searchbar-input-white aui-border-radius" style="margin: 0;">
                        <i class="icon iconfont icon-sousuo"></i>
                        <input v-model="formthird.keywords" type="search" v-on:keydown="handleEnterThird"
                            placeholder="受访单位" id="search-input">
                        <div v-if="formthird.keywords" class="new-searchbar-clear-btn"
                            v-on:click="doSearchClearThird()">
                            <i class="icon iconfont icon-guanbi"></i>
                        </div>
                    </div>
                    <div v-on:click="doSearchThird()" class="aui-searchbar-btn" tapmode
                        style="width: 1.6rem;margin-right: 0;margin-left: 0.5rem;padding-right: 0;">
                        <span>筛选</span>
                    </div>
                </div>
            </div>

            <div class="aui-content new-content-top-third">
                <div v-if="formthird.startTime!=''||formthird.endTime!=''" class="text-grey"
                    style="width: 90%;margin: 0 auto;margin-top: 10px;">
                    {{formthird.startTime}}-{{formthird.endTime}}
                </div>
                <div v-if="thirdList.length>0" v-for="(item,index) in thirdList" class="boxarea mainbox mb20"
                    style="position: relative;">
                    <div v-on:click="open_details(item)" class="work_con_box ">
                        <div class="workheader">
                            <div class="work_title_add ellipsis_one fl" style="font-weight: bold;">
                                {{item.ApplyCompany}}</div>
                            <div v-if="item.Register!=1" class="new-typestatus dsl">{{item.RegisterName}}</div>
                            <div v-if="item.Register==1" class="new-typestatus yczs">{{item.RegisterName}}</div>
                        </div>
                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">通行事由</div>
                            <div class="work_con_box_right">
                                <label>{{item.VisitTypeName}}</label>
                            </div>
                        </div>
                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">放行人</div>
                            <div class="work_con_box_right">
                                <label>{{item.AddUserName}}</label>
                            </div>
                        </div>

                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">放行时间</div>
                            <div class="work_con_box_right">
                                <label>{{item.VisitTime}}</label>
                            </div>
                        </div>
                        <div class="cl"></div>
                    </div>
                </div>
                <div v-if="thirdList.length>0" class="notodayList mb20">
                    没有更多内容
                </div>
                <div class="noinfo" v-if="thirdList.length<=0">
                    <img src="../image/index/noinfomsg_icon.png" alt="" />
                    <h5><br />暂无相关数据</h5>
                </div>
            </div>
        </div>


        <div v-if="activeTab==1" class="aui_bottom new_bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">提交</div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/mui/mui.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.picker.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.poppicker.js"></script>
<script type="text/javascript" src="../script/page/dateRangeUtil.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript " src="../script/moment/moment.js"></script>
<script type="text/javascript " src="js/releaserecordfk_frm.js"></script>

</html>